/*
 * @Author: pengtianrui 2276608413@qq.com
 * @Date: 2024-08-22 17:52:26
 * @LastEditors: pengtianrui 2276608413@qq.com
 * @LastEditTime: 2024-08-23 09:32:16
 * @FilePath: \SGFEM\DataStructure\FEM\Property\src\PCOMPData.cpp
 */

#include "DataStructure/Input/Property/PCOMPData.h"

#include "DataStructure/Common/Validation.h"

bool SG::DataStructure::FEM::operator== (const PCOMPData &a, const PCOMPData &b)
{
    if (a.m_nplies != b.m_nplies)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_offset, b.m_offset))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_nsm, b.m_nsm))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_sb, b.m_sb))
    {
        return false;
    }
    if (a.m_ft != b.m_ft)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_tref, b.m_tref))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_ge, b.m_ge))
    {
        return false;
    }
    if (a.m_domainId != b.m_domainId)
    {
        return false;
    }
    if (a.m_lam != b.m_lam)
    {
        return false;
    }
    if (a.m_secData != b.m_secData)
    {
        return false;
    }
    return true;
}